package tree.model;


public class Node<T> {
	
	private long id;
    private Node<T> left, right;
    private T data;

    public Node(long id) {
        this.id = id;
    }

	public void setLeft(Node<T> left) {
		this.left = left;
	}

	public Node<T> getLeft() {
		return left;
	}

	public void setRight(Node<T> right) {
		this.right = right;
	}

	public Node<T> getRight() {
		return right;
	}

	public void setData(T data) {
		this.data = data;
	}

	public T getData() {
		return data;
	}


	public long getId() {
		return id;
	}
}